<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="/statics/css/table.css" type="text/css" />
<script src="/statics/js/jquery.min.js"></script>
<script src="/statics/js/jquery.form.js"></script>
<script src="/statics/js/zhuayi.js"></script>
<script>
$(function(){
	
	$("#myform").submit(function(){
		//$("#dosubmit").attr('disabled',true).val('请稍后...')
		ajax($("#myform"),api_edit);
		return false;
	})
	
})
function api_edit(data)
{
	alert(data);
	var data=eval("("+data+")");
	if (data['code_en'] == '-1')
	{
		alert(data['code_cn']);
		$("#forget").attr('disabled',false).val('找回密码');
		return false;
	}
	tb_show('接口管理','/api/');
}
</script>
</head>
<body>
<div class="edit">
	<form action="/api/info" method="post" id="myform" enctype="multipart/form-data">
	<fieldset>
		<legend><a href="/api" class="thickbox">返回</a></legend>
		<table width="100%"  class="table_form">
			<tr>
				<th width="80">接口标题：</th>
				<td class="y-bg"><input type="text" class="input-text" name="title" id="title" value="<?php echo $info['title'];?>" size="30" /></td>
			</tr>
			<tr>
				<th>接口标识：</th>
				<td class="y-bg"><input type="text" class="input-text" name="api" id="api" value="<?php echo $info['api'];?>" size="20" /></td>
			</tr>
			<tr>
				<th>接口标志：</th>
				<td class="y-bg">
					<input type="text" class="input-text" name="litpic" id="litpic" value="<?php echo $info['litpic'];?>" size="50" />
					<input type="file" name="file1" id="file1"  style="width:66px;"/>
				</td>
			</tr>
			<tr>
				<th>模拟登陆：</th>
				<td class="y-bg">
					<input type="radio" name="landing" value="1" <?php if ($info['landing'] == '0'){ echo 'checked';};?>/> 是
					<input type="radio" name="landing" value="0" <?php if ($info['landing'] == '1'){ echo 'checked';};?>/> 否
				</td>
			</tr>
		</table>
	</fieldset>
	<div class="top10"></div>
		<input type="hidden" name="id" value="<?php echo $info ['id'];?>">
		<input type="submit" class="button" id="dosubmit" name="dosubmit" value="提交" />
	</form>
</div>
<script>setTimeout('tb_table("edit")',300)</script>